<script setup>
import { computed } from "vue";
import { useStore } from "./store/vuex";

const store = useStore();

const userInfo = computed(() => store.state.userInfo);

store.commit("upUserInfo", "xiaosong");
</script>

<template>
  <div>{{ userInfo }}</div>
</template>

<style scoped></style>
